package com.itnoob.controller;

import com.itnoob.service1.A1;
import com.itnoob.service1.B1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoujun
 * @date 2025/3/27 00:12
 */
@RestController
public class TestController {

    @Autowired
    private A1 a1;

    @Autowired
    private B1 b1;


    @GetMapping("/doSomething")
    public String doSomething(){
        a1.doSomething();

        b1.doSomething();
        return "调用成功";
    }
}
